<?php 
define('ROOT_PATH', str_replace('api/test.php', '', str_replace('\\', '/', __FILE__)));
require(ROOT_PATH . 'api/ZySmsSender.php');

echo ROOT_PATH . 'api/ZySmsSender.php <br />';

$ZySmsSender = new ZySmsSender();
//$result = $ZySmsSender->sendsms("zhengff","123456","18055538313","测试短信发送中");




$apidata="method=sendsms&username=zhengff&password=123456&mobiles=18055538313&message=中文测试短讯，看到请无视&smstype=0&timerflag=0&timervalue=&timertype=0&timerid=0";
$apiurl = "http://192.168.1.88:8080/zy-bysms/Api/receiveValidation.php";
$method="POST";
$my_header="";
$result = $ZySmsSender->use_curl($apiurl, $apidata, $method, $my_header);

print_r($result);